package com.cky.network.zhangqiang;

import java.time.zone.ZoneOffsetTransitionRule;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class comprehensive {
    public static void main(String[] args) {
        Map<String,Integer> map = new HashMap<>();
        for (int i =1;i <= 6;i++){
            map.put("第"+i+"个数据是",i);
        }
        System.out.println("__________");

        //第二部分
        List<Integer> list = new ArrayList<>();
        for (Map.Entry<String,Integer> keys : map.entrySet()){
            String key = keys.getKey();
            int value = keys.getValue();
            list.add(value);
        }
        for (int i = 1; i <=list.size();i ++){
            int j = list.get(i - 1);

            if (j % 2==0){
                System.out.println(j +"是偶数");
            }
            else {
                System.out.println(j + "是奇数");
            }
        }
        }
        }



